{$php_begin}{$crlf}
if(isset($focusId) && $focusId != ""){
	$sqlstr = "select * from {$tableName} where {$primaryKey} = $focusId ";
	$result = getFirstLineIntoMatrix($sqlstr);
{$php_end}{$crlf}
	
	<TABLE class='table_edit'>
	<TR>
		<TD width='12%'></TD>
		<TD width='38%'></TD>
		<TD width='12%'></TD>
		<TD></TD>
	</TR>
{loop="fields"}
	<TR>
		<TD class="col_label">{$php_short_begin}label("{$value.label_name}"){$php_end}</TD>
		<TD class="col_value">{$php_short_begin}htmlReplace($result["{$value.column_name}"]){$php_end}</TD>
	</TR>
{/loop}
	</TABLE>

{$php_begin}{$crlf}
}{$crlf}
{$php_end}{$crlf}